this._updateFocus.bind(this));
}
+ _updateScreenPosition() {
+ if (this._screenPosition == GDesktopEnums.MagnifierScreenPosition.NONE)
+ this._setViewPort({
+ x: this._viewPortX,
+ y: this._viewPortY,
+ width: this._viewPortWidth,
+ height: this._viewPortHeight
+ });
+ else
+ this.setScreenPosition(this._screenPosition);
+ }
+
_updateFocus(caller, event) {
let component = event.source.get_component_iface();
if (!component || event.detail1 != 1)
this._createActors();
if (this._isMouseOverRegion())
this._magnifier.hideSystemCursor();
+ this._updateScreenPosition();
this._updateMagViewGeometry();
this._updateCloneGeometry();
this._updateMousePosition();
return;
this._background.set_size(global.screen_width, global.screen_height);
-
- if (this._screenPosition == GDesktopEnums.MagnifierScreenPosition.NONE)
- this._setViewPort({ x: this._viewPortX,
- y: this._viewPortY,
- width: this._viewPortWidth,
- height: this._viewPortHeight });
- else
- this.setScreenPosition(this._screenPosition);
+ this._updateScreenPosition();
}
};